package com.ls.mapper;

import com.ls.pojo.UserScore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaotang
 * @since 2023-04-07
 */
public interface UserScoreMapper extends BaseMapper<UserScore> {

    @Select("SELECT MAX(new_score) newScore FROM  t_user_score WHERE user_id = #{userId}")
    Integer findMaxOldScoreByUserId(Integer userId);
}
